home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10038 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: phcoms4.seri.philips.nl!misf1!Pvestjen
  3. From: Pvestjen@ms.philips.nl (Patrick Vestjens)
  4. Subject: Re: prototype error
  5. Message-ID: <1996Mar15.084834.23743@ms.philips.nl>
  6. Sender: news@ms.philips.nl
  7. Organization: Philips Medical Systems, Best
  8. X-Newsreader: TIN [version 1.2 PL2]
  9. References: <4i8688$1gr@cloner4.netcom.com>
  10. Date: Fri, 15 Mar 1996 08:48:34 GMT
  11.  
  12. harold brent hyatt (brenth@ix.netcom.com) wrote:
  13. : I copied this program from a C primer and get an error as follows:
  14. : "Call to function sound, delay, nosound with no prototype."
  15. : I'm using a Borland 3.1 C++ compiler in the EasyWin mode. I have
  16. : tried switching the compiler from ANSI to Borland C++, but with the
  17. : same result. What's wrong? Thanks.
  18.  
  19. Sounds like you forgot to include the header file that has the
  20. prototypes for sound, delay and nosound in it. Do you know in what
  21. header file these are supposed to be? You can probably find out by using
  22. the online help.
  23.  
  24. I wonder though, did you just get the above warning or did you also get
  25. some 'unresolved references' during the linking phase? The warning you
  26. describe should not keep the compiler from generating an executable,
  27. however the 'unresolved references' will.
  28.  
  29. Good luck,
  30.  
  31. Patrick.
  32.